provider Projects POST /api/0/organizations/{organization_id_or_slug}/spike-protections/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/spike-protections/
Enable Spike Protection
Enables Spike Protection feature for some of the projects within the organization.
organization_id_or_slug path required
The ID or slug of the organization the projects belong to
string

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

enableSpikeProtection
POST/api/0/organizations/{organization_id_or_slug}/spike-protections/
Enables Spike Protection feature for some of the projects within the organization.

Parameters

required

The ID or slug of the organization the projects belong to

Input

required

Slugs of projects to enable Spike Protection for. Set to `$all` to enable Spike Protection for all the projects in the organization.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.enableSpikeProtection()